//
//  NewsObj.m
//  Brand
//
//  Created by Faker on 4/21/14.
//  Copyright (c) 2014 Faker. All rights reserved.
//

#import "NewsObj.h"

@implementation NewsObj

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if(self)
    {
        self.mId = [aDecoder decodeObjectForKey:@"id"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.pic = [aDecoder decodeObjectForKey:@"pic"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.mId forKey:@"id"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.pic forKey:@"pic"];
}


@end
